import { createApp } from 'vue';
import App from './App.vue';
import { router } from './router/index';

// 初始化样式
import "@/assets/css/reset.css";
// rem 适配js
// import 'amfe-flexible'
// 设置html根字体大小
import "@/assets/css/font_html.css";
// 导入vant css(由于采用配置主题方式，这里需要导入vant less 主题文件,如果不需要自定义主题注释下面代码，然后解除config/cdn.js 中vant主题样式的注释)
import "vant/lib/index.less";

const app = createApp(App);

// Vant组件全局
import { Button, Toast, Dialog, Notify, Loading, Cell, CellGroup, Field, Col, Row, Icon } from 'vant';
app.use(Button);
app.use(Toast);
app.use(Dialog);
app.use(Notify);
app.use(Loading);
app.use(Cell);
app.use(Field);
app.use(CellGroup);
app.use(Col);
app.use(Row);
app.use(Icon);

app.use(router);

app.mount('#app');
